package router

import (
	"github.com/gin-gonic/gin"
	"server/api/v1"
)

func InitRoleRouter(Router *gin.RouterGroup) {
	AuthorityRouter := Router.Group("role")
	{
		AuthorityRouter.POST("createRole", v1.CreateRole)            // 创建角色
		AuthorityRouter.DELETE("deleteRole/:role_id", v1.DeleteRole) // 删除角色
		AuthorityRouter.GET("getRoleInfo/:role_id", v1.GetRoleInfo)  // 获取角色列表
	}
}
